import http from './http'


export const getAppList = (data, callback) =>http.get('/v1/get_menulist' , data, callback, false)


export const uploadImage = (data, callback) =>http.post('/v1/param_image' , data, callback, false)

export const startGenerate = (data, callback) =>http.post('/v1/generate_task' , data, callback, false)

export const getGenerate = (data, callback) =>http.get('/v1/generate_task' , data, callback, false)

export const selectGenerate = (data, callback) =>http.post('/v1/get_task_state' , data, callback, false)


export const generateShare = (data, callback) =>http.post('/v1/generate_share' , data, callback, false)

export const getGenerateShare = (data, callback) =>http.get('/v1/get_generate_share' , data, callback, false)


export const getDialogList = (data, callback) =>http.get('/v1/dialog' , data, callback, false)

export const delDialogList = (data, callback) =>http.delete('/v1/dialog' , data, callback, false)

export const uploadRAGFile = (data, callback) =>http.post('/v1/rag_file' , data, callback, false)
export const getRAGFile = (data, callback) =>http.get('/v1/rag_file' , data, callback, false)
export const processRAGFile = (data, callback) =>http.post('/v1/process_rag_file' , data, callback, false)

